package com.jrx.anytxn.param.service.rights.impl;

import com.jrx.anytxn.param.entity.TlCustomerLabelLog;
import com.jrx.anytxn.param.mapper.ext.ExtTlCustomerLabelLogMapper;
import com.jrx.anytxn.param.service.rights.ITlCustomerLabelLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TlCustomerLabelLogService implements ITlCustomerLabelLogService {
    @Resource
    ExtTlCustomerLabelLogMapper extTlCustomerLabelLogMapper;

    @Override
    public void saveTlCustomerLabelLog(TlCustomerLabelLog tlCustomerLabelLog){
        extTlCustomerLabelLogMapper.insertSelective(tlCustomerLabelLog);
    }

    @Override
    public List<TlCustomerLabelLog> fetchLableLog(String tenantId, String channel, String mobile, String idNumber){
        List<TlCustomerLabelLog> list = extTlCustomerLabelLogMapper.selectByCustomerInfo(tenantId,channel,mobile,idNumber);
        return list;
    }

}
